package com.example.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.Authentication;
import com.example.entity.Legalperson;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tyhxzy
 * @since 2023-11-03
 */
public interface AuthenticationMapper extends BaseMapper<Authentication> {
    @Select("select * from authentication where zid=#{id}")
    Authentication select(Integer id);
     Map findZt(Integer id);

     @Update("UPDATE legalperson SET STATUS =0,reason=NULL WHERE zid=#{zid}")
    int updateStatus(Integer zid);
     @Update("UPDATE legalperson SET STATUS =1,reason=#{reason} WHERE zid=#{zid}")
     int updateStatus1(Legalperson legalperson);
}
